package com.yellowcong.server.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yellowcong.dao.UserDao;
import com.yellowcong.entity.UserEntity;
import com.yellowcong.server.UserService;

/**
 * 创建日期:2018年4月7日<br/>
 * 代码创建:黄聪<br/>
 * 功能描述:<br/>
 */
@Service
public class UserServiceImpl implements UserService{

	@Resource
	private UserDao userDao;
	
	@Override
	public int insert(UserEntity record) {
		// TODO Auto-generated method stub
		return userDao.insert(record);
	}

	@Override
	public List<UserEntity> getAll() {
		// TODO Auto-generated method stub
		return userDao.getAll();
	}
}
